﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="book.aspx.cs" Inherits="book" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>书刊信息</title>
<link rel="stylesheet" type="text/css" href="wuliu.css">
      
        <style type="text/css">
            #form2
            {
                height: 1028px;
            }
        </style>
      
</head>

<body>
<form id="form2" runat="server" >
<div id="container">
	<div id="top">
    	<div id="header"></div>
        <div id="menu">
        	<ul>
            	<li><a href="index.aspx">首页</a></li>
                <li><a href="user.aspx">个人中心</a></li>
                <li><a href="elc.aspx">家电信息</a></li>
                <li><a href="help.aspx">求助信息</a></li>
                <li><a href="teach.aspx">服务信息</a></li>
                
            </ul>
        </div>
    </div>	
    <div id="content">
      <div id="main" >
      
    
	      
          <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
              ConnectionString="<%$ ConnectionStrings:infoConnectionString %>" 
              SelectCommand="SELECT * FROM [b_infobook]">
          </asp:SqlDataSource>
          <asp:ScriptManager ID="ScriptManager1" runat="server">
          </asp:ScriptManager>
          <asp:UpdatePanel ID="UpdatePanel1" runat="server">
              <ContentTemplate>
                  <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
              AutoGenerateColumns="False" CellPadding="4" DataKeyNames="user_id" 
              DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
              style="text-align: center" Width="895px" Height="257px">
                      <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                      <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                      <Columns>
                          <asp:CommandField ShowSelectButton="True" />
                          <asp:BoundField DataField="user_pbmsg" HeaderText="标题" 
                      SortExpression="user_pbmsg" />
                          <asp:BoundField DataField="user_datepb" HeaderText="发布日期" 
                      SortExpression="user_datepb" />
                          <asp:BoundField DataField="book_id" HeaderText="产品ID" ReadOnly="True" 
                      SortExpression="book_id" />
                      </Columns>
                      <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                      <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                      <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                      <AlternatingRowStyle BackColor="White" />
                  </asp:GridView>
                  <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                      CellPadding="4" DataSourceID="LinqDataSource1" ForeColor="#333333" 
                      GridLines="None" Height="77px" style="text-align: center" Width="896px">
                      <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                      <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
                      <RowStyle BackColor="#EFF3FB" />
                      <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
                      <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                      <EmptyDataTemplate>
                          无
                      </EmptyDataTemplate>
                      <Fields>
                          <asp:BoundField DataField="user_name" HeaderText="发布者" ReadOnly="True" 
                              SortExpression="user_name" />
                          <asp:BoundField DataField="user_email" HeaderText="邮箱" ReadOnly="True" 
                              SortExpression="user_email" />
                          <asp:BoundField DataField="user_phone" HeaderText="联系电话" ReadOnly="True" 
                              SortExpression="user_phone" />
                      </Fields>
                      <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                      <HeaderTemplate>
                          发布者信息
                      </HeaderTemplate>
                      <EditRowStyle BackColor="#2461BF" />
                      <AlternatingRowStyle BackColor="White" />
                  </asp:DetailsView>
              </ContentTemplate>
          </asp:UpdatePanel>
          <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
              ContextTypeName="infosDataContext" TableName="b_user" 
              Where="user_id == @user_id" Select="new (user_name, user_email, user_phone)">
              <WhereParameters>
                  <asp:ControlParameter ControlID="GridView1" Name="user_id" 
                      PropertyName="SelectedValue" Type="String" />
              </WhereParameters>
          </asp:LinqDataSource>
      
    
	      
	   </div>
  </div>
    <div id="footer">
        版权所有 Copyright ©长江大学计算机科学学院 All Rights Reserveda href=&quot;#&quot;&gt;联系站长"#">网站地图;#&quot;&gt;联系站长"#">网站地图</a>
    </div>
</div>
</form>
</body>

</html>

